package com.admin.controllerv1;

import com.admin.service.ApArticleService;
import com.apis.admin.AdArtocleControlerApi;

import com.usian.model.atri.pojos.ApArticle;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/article/api/v1/article")
@RestController
public class AdArtocleControler  implements AdArtocleControlerApi {
    @Autowired
    private ApArticleService apArticleService;


    @PostMapping("savaAriticle")
    @Override
    public ApArticle saveArticle(ApArticle apArticle) {
        apArticleService.save(apArticle);
        return apArticle;
    }
}
